import request from '@/api/request'
const {user, auth} = request.config
// 菜单列表
export function list(params) {
  return request.get(user + "/management/resourceManage/queryTree", params)
}

// 新增菜单
export function add(params) {
  return request.post(user + "/management/resourceManage/add", params)
}

// 删除菜单
export function del(params) {
  return request.post(user + "/management/resourceManage/delete", params)
}

// 查询单个菜单
export function getById(params) {
  return request.get(user + "/management/resourceManage/query", params)
}

// 更新菜单
export function update(params) {
  return request.post(user + "/management/resourceManage/update", params)
}
